Ir arriba
Información del artículo

Evaluating Prompt Injection Attacks with LSTM-Based Generative Adversarial Networks: A Lightweight Alternative to Large Language Models

S. Rashid, E. Bollis, L. Pellicer, D. Rabbani, R. Palacios, A. Gupta

Machine Learning and Knowledge Extraction Vol. 7, nº. 3, pp. 77

Resumen:

Generative Adversarial Networks (GANs) using Long Short-Term Memory (LSTM) provide a computationally cheaper approach for text generation compared to large language models (LLMs). The low hardware barrier of training GANs poses a threat because it means more bad actors may use them to mass-produce prompt attack messages against LLM systems. Thus, to better understand the threat of GANs being used for prompt attack generation, we train two well-known GAN architectures, SeqGAN and RelGAN, on prompt attack messages. For each architecture, we evaluate generated prompt attack messages, comparing results with each other, with generated attacks from another computationally cheap approach, a 1-billion-parameter Llama 3.2 small language model (SLM), and with messages from the original dataset. This evaluation suggests that GAN architectures like SeqGAN and RelGAN have the potential to be used in conjunction with SLMs to readily generate malicious prompts that impose new threats against LLM-based systems such as chatbots. Analyzing the effectiveness of state-of-the-art defenses against prompt attacks, we also find that GAN-generated attacks can deceive most of these defenses with varying levels of success with the exception of Meta’s PromptGuard. Further, we suggest an improvement of prompt attack defenses based on the analysis of the language quality of the prompts, which we found to be the weakest point of GAN-generated messages.

 

 


Resumen divulgativo:

Este artículo muestra que modelos GANs sencillos como SeqGAN y RelGAN puede generar prompts maliciosos contra LLMs, como chatbots.  Los bajos requisitos de hardware permite a actores maliciosos la producción masiva de ataques. Las defensas de LLS deben ser mejoradas para bloquear estos ataques.


Palabras Clave: AI Cybersecurity; adversarial prompts; large language models; Generative Adversarial Network


Índice de impacto JCR-JIF y cuartil WoS: 6,000 - Q1 (2024)

Referencia DOI: DOI icon https://doi.org/10.3390/make7030077

Publicado en papel: Septiembre 2025.

Publicado on-line: Agosto 2025.



Cita:
S. Rashid, E. Bollis, L. Pellicer, D. Rabbani, R. Palacios, A. Gupta, A. Gupta, "Evaluating Prompt Injection Attacks with LSTM-Based Generative Adversarial Networks: A Lightweight Alternative to Large Language Models", Machine Learning and Knowledge Extraction, Vol. 7, nº. 3, pp. 77, Septiembre 2025. [Online: Agosto 2025] doi: 10.3390/make7030077

    Líneas de investigación:
  • IA segura, confiable, justa e interpretable
  • Cuestiones éticas derivadas de la gestión tecnológica y la Inteligencia Artificial
    Grupos de investigación:
  • Instituto de Investigación Tecnológica (IIT)
    ODS:
  • Objetivo 9: Industria, innovación e infraestructuras
  • Objetivo 16: Paz, justicias e instituciones sólidas